import { ElButton, ElForm, ElFormItem, ElInput } from 'element-plus'
import 'element-plus/theme-chalk/base.css' // 引入 Element Plus 的 CSS 样式
import { App } from 'vue'

const components = [ElButton, ElForm, ElFormItem, ElInput]

export function registerElementPlus(app: App): void {
  for (const component of components) {
    app.component(component.name ?? '', component)
  }
}
